<div id="slides">
<div id="top">
    <div class="grid_12 alpha">
        <div id="featured">
            <div class="slides_holder">
                <div class="slides_container">
                	<?php 
						// Check if Featured category set
						global $wpdb;
						$featured = get_option('woo_featured_category'); 
						if ($featured <> "ALL") {
							$feat_id = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name = '$featured'");
                     		query_posts("showposts=".get_option('woo_scroller_posts')."&cat=".$feat_id); 
						} else {
/*
							$idObj = get_category_by_slug( get_option('woo_blog_cat') ); 
							$cat_id = $idObj->term_id;
                     		query_posts("showposts=".get_option('woo_scroller_posts')."&cat=-".$cat_id);							
*/
                     		query_posts("showposts=".get_option('woo_scroller_posts'));							
						}							
					?>
                    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>		        					
                
                    <div class="slide"<?php if ( $wp_query->post_count == 1 ) echo ' style="display:block;"'; ?>>
                    
                        <div style="float:left;width:700px;">
                                            
                            <div class="grid_7 alpha">
                               <?php woo_image( 'width=400&height=267' ); ?>
                            </div><!-- / #grid_8 -->
                           
                            <div class=" grid_5 omega">
                                <div class="featured_text">
                                    <h2><a title="Permanent Link to <?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                                    <?php the_excerpt(); ?>
                                </div>
                            </div><!-- / #grid_4 -->
                        
                        </div>
                    
                        <br class="fix" />
            
                    </div><!-- / slide -->
                    
                    <?php endwhile; endif; ?>
                    
                </div><!-- / belt -->
            </div><!-- / mygallery -->
        </div><!-- / featured -->
    </div><!-- / grid_12 -->
        
    <div class="grid_4 omega">
        <div id="about">
        
            <h2><?php echo stripslashes( get_option( 'woo_about_header' ) ); ?></h2>           
            <p><?php if ( get_option( 'woo_about_photo' ) ) { ?><img alt="" class="about_image" src="<?php echo get_option( 'woo_about_photo' ); ?>" /><?php } ?><?php echo stripslashes( get_option( 'woo_about_text' ) ); ?></p>
             <p><?php if ( get_option( 'woo_about_button' ) ) { ?><a class="about_button" href="<?php echo get_option( 'woo_button_link' ); ?>" title="<?php esc_attr_e( 'Read more about me', 'woothemes' ); ?>"><?php echo stripslashes( get_option( 'woo_about_button' ) ); ?></a><?php } ?></p>

        </div><!-- / #about -->
    </div><!-- / #grid_4 -->
            
</div><!-- / #top -->
           
<div class="grid_16 alpha omega" id="slider_nav">
    <div class="grid_6 alpha">
    	<a href="#" class="prev-slide"><img src="<?php echo get_template_directory_uri(); ?>/images/arr-left.png" alt="<?php esc_attr_e( 'Back', 'woothemes' ); ?>" /> <?php _e( 'Previous', 'woothemes' ); ?></a>
    </div>
    <div class="grid_6" style="text-align:right;">
    	<a href="#" class="next-slide"><?php _e( 'Next', 'woothemes' ); ?> <img src="<?php echo get_template_directory_uri(); ?>/images/arr-right.png" alt="<?php esc_attr_e( 'Forward', 'woothemes' ); ?>" /></a>
    </div>
    <div class="grid_4 omega">
        <p><a class="rss_subscribe" href="<?php if ( get_option( 'woo_feedburner_url' ) != '' ) { echo get_option( 'woo_feedburner_url' ); } else { echo get_bloginfo_rss( 'rss2_url' ); } ?>" title="Subscribe to our RSS feed"> <?php _e( 'Subscribe to the feed', 'woothemes' ); ?></a></p>
    </div>
</div>            
        
</div>